const express = require('express')
const https = require("https");
const app = express()
const fs = require('fs')
// Configuare https
const httpsOption = {
    key : fs.readFileSync("./ssl/private.key"),
    cert: fs.readFileSync("./ssl/cert.pem")
}
const server = https.createServer(httpsOption, app)

app.use('/public',express.static('public'))
app.get('/', (req, res) => res.send('hello world22!'))

server.listen(443,function(){
	console.log('app is running at port 443');
})
